package com.zhangzhan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangzhan.domain.commcon.ResponseResult;
import com.zhangzhan.domain.dto.SaveMenuDto;
import com.zhangzhan.domain.dto.UpdateMenuDto;
import com.zhangzhan.domain.entity.Menu;
import com.zhangzhan.domain.vo.MenuTreeSelectVO;
import com.zhangzhan.domain.vo.RoleMenuTreeselectVO;

import java.util.List;


/**
 * 菜单权限表(Menu)表服务接口
 *
 * @author makejava
 * @since 2022-12-05 15:05:31
 */
public interface MenuService extends IService<Menu> {

    List<String> selectPermsByUserId(Long id);

    //菜单数据展示
    ResponseResult listMenu(String status, String menuName);

    //新增
    ResponseResult saveMenu(SaveMenuDto saveMenuDto);

    //修改前回显
    ResponseResult rowBackMenu(Long id);

    //修改菜单
    ResponseResult updateMenu(UpdateMenuDto updateMenuDto);

    //删除菜单
    ResponseResult deleteMenu(Long menuId);

    ResponseResult<MenuTreeSelectVO> treeselect();

    //加载对应角色菜单列表树接口
    ResponseResult<RoleMenuTreeselectVO> roleMenuTreeselect(Long id);
}

